/* 
    路由
*/

const express = require("express");
const router = express.Router();
const service = require("./service.js");

router.post("/login", service.login);
router.post("/register", service.register);
router.get("/verify", service.verify);
router.get("/logout", service.logout);
router.get("/getUser", service.getUser);
router.post("/findPassword", service.findPassword);
router.get("/admin", service.admin);
router.get("/getAllUsers", service.getAllUsers);
router.post("/freeze", service.freeze)
router.post("/removeUser", service.removeUser)
router.post("/promote", service.promote)

module.exports = router;